package com.bridgeintelligent.tag.webserver.indexquery.service;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author JackCheung
 * @date 2020/7/2 4:00 PM.
 * description:
 */
@AllArgsConstructor
@RestController
@RequestMapping(value = "/api/indexQuery")
public class IndexQueryController {

    private IndexQueryFeignClient indexQueryFeignClient;

    @GetMapping("/distribution")
    public Object dataSet(String config) {
        return indexQueryFeignClient.index(config);
    }
}
